<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>

<head>
    <title>资讯管理</title>
</head>

<body>

<div id="wrapper">
    <div class="gray-bg">
        <div class="row  m-t-sm">
            <div class="col-lg-12">
                <ol class="breadcrumb f-fl">
                    <li>
                        <i class="fa fa-location-arrow"></i> <a>资讯管理</a>
                    </li>
                    <li class="active">
                        <strong>浏览列表</strong>
                    </li>
                </ol>
            </div>
        </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox">
                        <div class="ibox-content">
                            <div class="search-area">
                                <form role="form" class="form-inline" id="queryform">
                                    <input type="hidden"  name="mid"
                                           class="form-control form-filter" value="${mid}">
                                    <%--<label for="title">
                                        <input type="input" placeholder="资讯标题" name="title"
                                               id="title"
                                               class="form-control form-filter"></label>--%>

                                    <div class="form-group">
                                        <div class="input-group date" datepicker>
                                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" id="startTime" name="startTime" placeholder="开始日期" value="" class="form-control form-filter" >
                                        </div>
                                    </div>
                                    》》》
                                    <div class="form-group">
                                        <div class="input-group date" datepicker>
                                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" id="endTime" name="endTime" placeholder="结束日期" value="" class="form-control form-filter" >
                                        </div>
                                    </div>
                                    <button class="btn btn-primary" id="btnSearch" type="button" onclick="submitFilter()" > 查询</button>
                                    <button class="btn btn-primary" datatable-clear type="button"> 清除</button>
                                </form>
                            </div>
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover dataTables" id="data-table"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>


<!-- Page-Level Scripts -->
<script>
    $(document).ready(function () {
        var setting = {
            "ajax": {
                "url": "${ctx}/admin/info/scan/list",
                "type": "POST"
            },
            "columns": [
                {"title": "手机号", "data": "cellphone", "width": "10%", "orderable": false},
                {"title": "姓名", "data": "name", "width": "10%", "orderable": false},
                {"title": "性别", "data": "sex", "width": "10%", "orderable": false},
                {"title": "年龄", "data": "age", "width": "10%", "orderable": false},
                {"title": "浏览时间", "data": "scanTime", "width": "10%", "orderable": false},
            ],
            "columnDefs": [
            ]
        };
        /* Init DataTables */
        $('#data-table').DataTable(ehconfig.get_datatable_config(setting));
        submitFilter = function () {
            $('#data-table').DataTable().draw();

        }
    });
    //    function clean() {
    //        $('#begin_time1').val('');
    //        $('#begin_time2').val('');
    //        $('#type').val('');
    //        $('#data-table').DataTable().draw();
    //    }

</script>

</body>

</html>
